<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
    class Eyeworx_Inventory_Lens extends Module {

        public function body() {
            $lens_recordset = new Eyeworx_Inventory_Lens_RBO_RBOLenses();
            $this->display_module($lens_recordset->create_rb_module($this));
        }

        public function caption() {
            return "Lens Inventory";
        }

        public function lens_import_addon($r)
        {
            $ai_recordset = new Eyeworx_Inventory_LensImport_RBO_RBOLensesImport();
            $rb = $ai_recordset->create_rb_module($this);
            $this->display_module($rb, array(array("spectacle"=>$r['id']), array("spectacle"=>false, "date_imported"=>true, "quantity"=>true), array()), 'show_data');
        }

    }
?>